#pragma once
//Accumulator

class RequestIdACC
{
public:
	static int Generate()
	{
		static int s_base = 1;
		return s_base++;
	}
};

class LocalIdACC
{
public:
	static int Generate()
	{
		int& base = GetBase();
		base += 2;
		return base;
	}

	static void Init(int base)
	{
		int& b = GetBase();
		b = base;
	}

private:
	static int& GetBase()
	{
		static int s_base = -1;
		return s_base;
	}
};



